﻿using Ledict.ConditionExtract.DAL;
using Ledict.ConditionExtract.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ledict.ConditionExtract.BLL
{
    public class PresentationResultsBLL
    {
        PresentationResultsDAL presentDAL = new PresentationResultsDAL();

        /// <summary>
        /// 添加结果集
        /// </summary>
        /// <param name="Model"></param>
        /// <returns></returns>
        public bool AddPresentation(PresentationResults Model)
        {
            return presentDAL.AddPresentation(Model);
        }

        /// <summary>
        /// 获取结果集数据
        /// </summary>
        /// <param name="Model"></param>
        /// <returns></returns>
        public DataTable GetPresentationData(string CC_IDList,string causeId)
        {
            return presentDAL.GetPresentationData(CC_IDList, causeId);
        }

        /// <summary>
        /// 获取是否存在结果集数据
        /// </summary>
        /// <param name="Model"></param>
        /// <returns></returns>
        public bool IsExsitsPresentationData(PresentationResults Model)
        {
            return presentDAL.IsExsitsPresentationData(Model);
        }
    }
}